{% extends 'base.html' %}
{% block title %}登录{% endblock %}
{% block content %}
  <form class="form-horizontal" role="form" method="post">
    {% csrf_token %}
    <div class="form-group">
      <label for="firstname" class="col-sm-2 control-label">用户名：</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="username" id="firstname" placeholder="用户名">
      </div>
    </div>
    <div class="form-group">
      <label for="lastname" class="col-sm-2 control-label">密码</label>
      <div class="col-sm-10">
        <input type="password" name="pwd" class="form-control" id="lastname" placeholder="密码">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <div class="checkbox">
          <label>
            <input name="ischeck" type="checkbox">记住密码
          </label>
        </div>
      </div>
    </div>

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-primary btn-block">登录</button>
      </div>
    </div>
    <div class="form-group" style="text-align: center">
      <span style="color: red;font-size: 14px;text-align: center">{{ error }}</span>
    </div>
  </form>
{% endblock %}